<script lang="ts" setup>
import { reactive } from 'vue'
import { ref } from 'vue'
import type { ImageProps } from 'element-plus'
import { Delete, Download, Plus, ZoomIn } from '@element-plus/icons-vue'

import type { UploadFile } from 'element-plus'

const dialogImageUrl = ref('')
const dialogVisible = ref(false)
const disabled = ref(false)

const handleRemove = (file: UploadFile) => {
    console.log(file)
}

const handlePictureCardPreview = (file: UploadFile) => {
    dialogImageUrl.value = file.url!
    dialogVisible.value = true
}

const handleDownload = (file: UploadFile) => {
    console.log(file)
}
const textarea = ref('')
const textarea1 = ref('')
const textarea2 = ref('')
const textarea3 = ref('')
const textarea4 = ref('')
const input = ref('')
const input1 = ref('')
const input2 = ref('')
const input3 = ref('')
const input4 = ref('')
const input5 = ref('')
const input6 = ref('')
const input7 = ref('')
const input8 = ref('')
const input9 = ref('')
const input10 = ref('')

// do not use same name with ref
const form = reactive({
    name: '',
    region: '',
    date1: '',
    date2: '',
    delivery: false,
    type: [],
    resource: '',
    desc: '',
})

const onSubmit = () => {
    console.log('submit!')
}
</script>

<template>
    <el-form :model="form" label-width="auto" style="max-width: 700px; color: black;">
        <el-form-item label="SEO标题" size="">
            <el-input v-model="textarea" :rows="1" type="textarea"  />
        </el-form-item>
        <el-form-item label="SEO关键字" size="">
            <el-input v-model="textarea" :rows="1" type="textarea"  />
        </el-form-item>
        <el-form-item label="SEO描述" size="">
            <el-input v-model="textarea1" :rows="2" type="textarea"  />
        </el-form-item>
    </el-form>
    <el-button type="info" plain>保存</el-button>
</template>


<style scoped>
.el-form-item h3 {
    color: #235;
    font-size: 12px;
}
.el-button{
    margin-left: 80px;
    color:#123;
}
</style>
